home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / business / phone3.zip / INSTALL.BAT next >
DOS Batch File  |  1992-08-29  |  3KB  |  120 lines

  1. @ECHO OFF
  2.  
  3. REM install.bat
  4. REM Use to install or update the PHONE Program
  5.  
  6. REM Date........: 11/11/90
  7. REM Revised.....: 11/25/90, 02/23/91, 06/18/91, 09/22/91, 11/29/91
  8. REM               06/02/92
  9. REM Author......: Jeff Morris
  10. REM Copyright...: (c) Vision Computing, Inc.
  11.  
  12. IF NOT EXIST PHONE300.EXE GOTO NOEXE
  13.  
  14. CLS
  15. ECHO:
  16. ECHO                          PHONE Program Installation
  17. ECHO:
  18. ECHO:
  19. ECHO    ╔══════════════════════════════════════════════════════════════════════╗
  20. ECHO    ║ Press NUMBER to indicate which Drive to use for temporary workfiles. ║
  21. ECHO    ║ (Must have approx. 1 MB disk space free on that drive.)              ║
  22. ECHO    ║                                                                      ║
  23. ECHO    ║   1) "C:"      2) "D:"      3) EXIT the install program              ║
  24. ECHO    ╚══════════════════════════════════════════════════════════════════════╝
  25. ECHO:  
  26. REPLY
  27.  
  28. IF ERRORLEVEL 51 GOTO END
  29. IF ERRORLEVEL 50 GOTO DDRIVE
  30. IF ERRORLEVEL 49 GOTO CDRIVE
  31. GOTO END
  32.  
  33. :CDRIVE
  34. REM test to be sure C: is a valid drive
  35. if not exist c:\nul goto nodrive
  36.  
  37. ECHO:
  38. ECHO      Copying files to temporary directory "C:\PHONE.INS"
  39.  
  40. REM test, just in case the dir is there, possibly from an earlier install
  41. if not exist C:\phone.ins\nul MD C:\phone.ins
  42.  
  43. COPY *.* C:\phone.ins\*.* >NUL
  44. C:
  45. CD \PHONE.INS
  46. ECHO:
  47. ECHO      Expanding compressed files ... Please wait...
  48. PHONE300 >NUL
  49. PHONE INSTALL
  50. REM Get rid of temporary files and directory
  51. REM Note: If installed on a different drive, these files may need to
  52. REM       be manually deleted.
  53. ECHO:
  54. ECHO    ╔══════════════════════════════════════════════════════════════════════╗
  55. ECHO    ║                     Removing temporary workfiles                     ║
  56. ECHO    ╚══════════════════════════════════════════════════════════════════════╝
  57. ECHO:  
  58. DEL C:\phone.ins\p*.* >NUL
  59. DEL C:\phone.ins\c*.* > NUL
  60. DEL C:\phone.ins\*.m* > NUL
  61. DEL C:\phone.ins\readme > NUL
  62. DEL C:\phone.ins\install.bat >Nul
  63. DEL C:\phone.ins\reply.com >NUL
  64. RD C:\phone.ins >NUL
  65. GOTO END
  66.  
  67. :DDRIVE
  68. REM test to be sure D: is a valid drive
  69. if not exist d:\nul goto nodrive
  70.  
  71. ECHO:
  72. ECHO      Copying files to temporary directory "D:\PHONE.INS"
  73.  
  74. if not exist D:\phone.ins\nul MD D:\phone.ins
  75.  
  76. COPY *.* D:\PHONE.INS\*.* >NUL
  77. D:
  78. CD \PHONE.INS
  79. ECHO:
  80. ECHO      Expanding compressed files ... Please wait
  81. PHONE300 >NUL
  82. PHONE INSTALL
  83. REM Get rid of temporary files and directory
  84. REM Note: If installed on a different drive, these files may need to
  85. REM       be manually deleted.
  86. ECHO:
  87. ECHO    ╔══════════════════════════════════════════════════════════════════════╗
  88. ECHO    ║                     Removing temporary workfiles                     ║
  89. ECHO    ╚══════════════════════════════════════════════════════════════════════╝
  90. ECHO:  
  91. DEL D:\phone.ins\p*.* >NUL
  92. DEL D:\phone.ins\c*.* > NUL
  93. DEL D:\phone.ins\*.m* > NUL
  94. DEL D:\phone.ins\readme > NUL
  95. DEL D:\phone.ins\install.bat >NUL
  96. DEL D:\phone.ins\reply.com >NUL
  97. RD D:\phone.ins >NUL
  98. GOTO END
  99.  
  100. :NOEXE
  101. ECHO:
  102. ECHO      The PHONE300.EXE file must be in the same directory where
  103. ECHO      install.bat is run from. Press any key to quit.
  104. ECHO:
  105. REPLY
  106. GOTO END
  107.  
  108. :NODRIVE
  109. ECHO:
  110. ECHO      Invalid Drive! - Try to install again with a correct drive
  111. ECHO      OR - see the README file to start installation manually.
  112. ECHO:
  113. ECHO      Press any key to quit.
  114. ECHO:
  115. REPLY
  116. GOTO END
  117.  
  118. :END
  119. CLS
  120.